<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/4/9
  Time: 13:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>jQuery form extends</title>
    <script src="${pageContext.request.contextPath}/resources/libs/ace/assets/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/resources/libs/jquery-extends/jquery-select.js"></script>
</head>
<body>

<div>
    <label> 省：
        <select id="provinces" class="erp-select"
                data-options="url:'${pageContext.request.contextPath}/site/sys/dictionary/children?q=2', trigger:true">
            <option value="">请选择...</option>
        </select>
    </label>
    <label> 市：
        <select id="cities" class="erp-select"
                data-options="url:'${pageContext.request.contextPath}/site/sys/dictionary/children', parent:'provinces'">
            <option value="">请选择...</option>
        </select>
    </label>
    <label> 县：
        <select id="counties" class="erp-select"
                data-options="url:'${pageContext.request.contextPath}/site/sys/dictionary/children', parent:'cities'">
            <option value="">请选择...</option>
        </select>
    </label>
</div>

<script>
    $(function () {

//        $('select').select();
        var obj = {
            a: 1,
            b: 2
        };
        $.each(obj, function (name, value) {
            console.log(name + '=' + value);
        })

    });
</script>

</body>


</html>
